export default {
  path: "/set",
  redirect: "/set/index",
  meta: {
    icon: "ri:settings-2-fill",
    title: "基础设置",
    rank: 10
  },
  children: [
    {
      path: "/set/cangku",
      name: "仓库设置",
      component: () => import("@/views/set/cangku.vue"),
      meta: {
        title: "仓库设置"
      }
    },
    {
      path: "/set/index",
      name: "库区",
      component: () => import("@/views/set/index.vue"),
      meta: {
        title: "库区",
        showParent: true
      },
      children: [
        {
          path: "area-list",
          name: "库区管理",
          component: () => import("@/views/set/index.vue"),
          meta: {
            title: "库区管理"
          }
        },
        {
          path: "edit-area",
          name: "edit-area",
          component: () => import("@/views/set/edit-area.vue"),
          meta: {
            title: "编辑库区"
          }
        }
      ]
    },
    {
      path: "/set/location",
      name: "货位",
      component: () => import("@/views/set/location.vue"),
      meta: {
        title: "货位",
        showParent: true
      },
      children: [
        {
          path: "/set/location",
          name: "货位管理",
          component: () => import("@/views/set/location.vue"),
          meta: {
            title: "货位管理",
            showParent: true
          }
        },
        {
          path: "edit-location",
          name: "编辑货位",
          component: () => import("@/views/set/edit-location.vue"),
          meta: {
            title: "编辑货位"
          }
        }
      ]
    },
    {
      path: "/set/permission",
      name: "管理员",
      component: () => import("@/views/set/permission.vue"),
      meta: {
        title: "管理员",
        showParent: true
      },
      children: [
        {
          path: "/set/keeper",
          name: "库管员管理",
          component: () => import("@/views/set/keeper.vue"),
          meta: {
            title: "库管员管理"
          }
        },
        {
          path: '/set/keeper/form',
          name: '管理员表单',
          component: () => import('@/views/set/son/adminForm.vue'),  // 新建的 AdminForm.vue 页面
          meta: { title: '管理员表单' }
        },
        {
          path: "management",
          name: "仓库权限",
          component: () => import("@/views/set/management.vue"),
          meta: {
            title: "仓库权限"
          }
        }
      ]
    },
    {
      path: "management",
      name: "仓库管理权限",
      component: () => import("@/views/set/management.vue"),
      meta: {
        title: "仓库管理权限"
      }
    },
    {
      path: "/set/barcode",
      name: "条码管理",
      component: () => import("@/views/set/barcode.vue"),
      meta: {
        title: "条码管理"
      }
    },
    {
      path: "/set/parameter",
      name: "参数设置",
      component: () => import("@/views/set/parameter.vue"),
      meta: {
        title: "参数设置"
      },
      children: [
        {
          path: "/set/order",
          name: "类别顺序",
          component: () => import("@/views/set/parameter-order.vue"),
          meta: {
          title: "类别顺序",
          showParent: true
          }
        }
      ]
    }
  ]
} satisfies RouteConfigsTable;